package cn.sjj.util;	
	
import android.app.Activity;	
/**	
 * 获取屏幕高宽	
 * @author 宋疆疆	
 *	
 */	
public class WindowUtils {	
	private static Activity activity;	
	
	public static void setActivity(Activity activity) {	
		WindowUtils.activity = activity;	
	}	
	
	public static int getWidth() {	
		return activity.getWindowManager().getDefaultDisplay().getWidth();	
	}	
		
	public static int getHeight() {	
		return activity.getWindowManager().getDefaultDisplay().getHeight();	
	}	
}	
